@extends('admin.layout.index')
@section('title', '后台回复管理')
@section('header', '回复管理')
@section('con')
    <div class="col-lg-12" style="width:100%">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3>回复管理</h3>
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body" style="padding:0px">
                <div class="dataTable_wrapper">
                    <div id="dataTables-example_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="dataTables_length" id="dataTables-example_length">
                                    <label>显示
                                        <select name="dataTables-example_length" aria-controls="dataTables-example" class="form-control input-sm">
                                            <option value="10">10</option>
                                            <option value="25">25</option>
                                            <option value="50">50</option>
                                            <option value="100">100</option>
                                        </select>条
                                    </label>
                                </div>
                            </div>
                        <div class="col-sm-6">
                            <div id="dataTables-example_filter" class="dataTables_filter">
                                <label>搜索:
                                    <input type="search" class="form-control input-sm" placeholder="" aria-controls="dataTables-example">
                                </label>    
                                <button class="btn btn-info" type="button">搜索
                                </button>
                            </div>
                        </div>
                    </div>
                    
            <div class="col-sm-12">           
             <div class="panel-body" >
                <div class="table-responsive table-bordered">
                    <table class="table table-striped table-bordered table-hover" style="Word-break: break-all">
                        <thead>
                            <tr>
                                <th>标题</th>
                                <th>回复人</th>
                                <th>回复内容</th>
                                <th>回复时间</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach($data as $k=>$v)
                            <tr>
                                <input type="hidden" name="id" value="{{$v->id}}">
                                <td>{{$v->atitle}}</td>
                                <td>{{$v->name}}</td>
                                <td>{{$v->content}}</td>
                                <td>{{$v->time}}</td>
                                <td>@if($v->status===0)显示@else已屏蔽@endif</td>
                                <td>
                                    <a href="{{url('/admin/answer/del')}}?id={{$v->id}}"><li class="fa fa-trash-o fa-fw"></li>删除</a>|
                                    <a href="{{url('/admin/answer/edit')}}?id={{$v->id}}"><li class="fa fa-pencil fa-fw "></li>编辑</a>
                                </td>
                            </tr>
                           @endforeach
                        </tbody>
                    </table>
                </div>
            <!-- /.panel-body -->
            </div>
        <!-- /.panel -->
        </div>
    <!-- Modal -->
    </div>
    </div>
    </div>
    </div>
    </div>

@endsection




